package main

import (
	"fmt"
	"os/exec"
)

func main() {
	runCmd := exec.Command("/bin/bash", "-c", "ls -l ")
	runCmdOut, err := runCmd.CombinedOutput()
	if err != nil {
		fmt.Println("命令执行失败", string(runCmdOut))
	}else{
		fmt.Println("命令执行成功", string(runCmdOut))
	}
}
